/*
    打印相反数
*/
#include <stdio.h>
int func(int arr[], int size) {
    int num = 0;
    for(num = 0; num <= size - 1; num++) {
   	arr[num] = 0 - arr[num];
    }
    printf("\n");
}
int main() {
    int arr[9] = {1,2,3,4,5,-6,-7,-8,-9}, num = 0;
    func(arr, 9);
    for (num = 0; num <= 8; num++) {
	printf ("%d ",arr[num]);
    }
    printf("\n");
    return 0;
}
